import { Spin } from "antd";
import React from "react";
import styles from "./src/load.module.scss"
const Loading = ({ children, loading, ...props }) => {
    return (
        <>

            {children}
            <div className={styles.container} style={{ display: loading ? "flex" : "none" }}>
                <Spin  spinning={loading} />
            </div>

        </>
    )
}

export default Loading;